/* ================== FLOATING PROMO ================== */
#promo-floating-btn {
  position: fixed;
  bottom: 190px;
  right: 30px;
  width: 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  z-index: 9997;
  animation: promoFloat 2s cubic-bezier(.4,0,.2,1) infinite;
}

/* tulisan promo */
#promo-floating-btn img {
  width: 140px;
  margin-bottom: -12px;
  filter: drop-shadow(0 6px 14px rgba(0,0,0,0.35));
}

/* ================== BADGE ICON ================== */
/* ================== PROMO CIRCLE UPGRADE ================== */
.promo-circle {
  width: 62px;
  height: 62px;
  display: flex;
  justify-content: center;
  align-items: center;

  position: relative;

  /* 🔥 Squircle shape (lebih modern dari circle) */
  border-radius: 28%;

  /* Premium gradient */
  background: radial-gradient(circle at 30% 30%, #ffe082, #ffb703 60%, #fb8500);

  /* Glow + depth */
  box-shadow:
    inset 0 4px 10px rgba(255,255,255,0.45),
    inset 0 -6px 12px rgba(0,0,0,0.25),
    0 10px 25px rgba(0,0,0,0.3),
    0 0 20px rgba(255,183,3,0.7);

  /* Border shine */
  border: 2px solid rgba(255,255,255,0.35);

  backdrop-filter: blur(6px);

  transition: all .35s ease;
}

/* ================== GLOW RING ================== */
.promo-circle::before {
  content: "";
  position: absolute;
  inset: -6px;

  border-radius: inherit;

  background: radial-gradient(circle, rgba(255,183,3,0.4), transparent 70%);
  z-index: -1;

  animation: pulseRing 2s ease-in-out infinite;
}

@keyframes pulseRing {
  0%   { transform: scale(0.9); opacity: 0.7; }
  50%  { transform: scale(1.2); opacity: 0.3; }
  100% { transform: scale(0.9); opacity: 0.7; }
}

/* ================== SHINE EFFECT ================== */
.promo-circle::after {
  content: "";
  position: absolute;
  top: -20%;
  left: -60%;
  width: 60%;
  height: 140%;

  background: linear-gradient(
    120deg,
    transparent 30%,
    rgba(255,255,255,0.6),
    transparent 70%
  );

  transform: rotate(25deg);
  animation: shineMove 3s linear infinite;
}

@keyframes shineMove {
  0%   { left: -60%; }
  100% { left: 120%; }
}

/* ================== ICON ================== */
.promo-circle img {
  width: 48px;
  height: 48px;
  object-fit: contain;

  transform: translateY(-6px);

  filter: drop-shadow(0 3px 8px rgba(0,0,0,0.4));
}

/* ================== HOVER EFFECT ================== */
#promo-floating-btn:hover .promo-circle {
  transform: scale(1.15);

  box-shadow:
    0 12px 28px rgba(0,0,0,0.35),
    0 0 25px rgba(255,183,3,0.9),
    0 0 40px rgba(255,183,3,0.5);
}

/* ================== CURVE TEXT ================== */
.promo-curve-text {
  width: 140px;
  height: 60px;
  margin-bottom: -33px;
  overflow: visible;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.3));
  animation: textSway 3s ease-in-out infinite alternate;
}

.promo-curve-text text {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 2px;
  fill: #ffb703;
}

/* sway ringan untuk teks */
@keyframes textSway {
  0%   { transform: rotate(-2deg); }
  50%  { transform: rotate(2deg); }
  100% { transform: rotate(-2deg); }
}

/* ================== TOOLTIP PROMO ================== */
.promo-tooltip {
  position: absolute;
  right: 85px;
  bottom: 10px;
  width: 240px;
  padding: 14px 16px;

  background: rgba(30,30,30,0.96);
  color: #ffffff;
  font-size: 13px;
  line-height: 1.6;

  border-radius: 10px;
  border: 1px solid rgba(255,183,3,0.35);

  opacity: 0;
  transform: translateX(10px);
  pointer-events: none;

  box-shadow:
    0 12px 28px rgba(0,0,0,0.35),
    0 0 12px rgba(255,183,3,0.45),
    0 0 24px rgba(255,183,3,0.25);

  transition: all .35s ease, box-shadow .6s ease-in-out;
}

/* ================== WRAPPER ROTATE ================== */
.promo-rotate-wrapper {
  position: absolute;
  width: 140px;
  height: 140px;

  display: flex;
  justify-content: center;
  align-items: flex-start;

  animation: rotateText 8s linear infinite;
}

/* posisi text di atas lingkaran */
.promo-title,
.promo-desc {
  position: absolute;
  width: 120px;
  text-align: center;
}

/* TITLE (atas) */
.promo-title {
  top: 0;
  font-size: 11px;
  font-weight: 700;
  color: #ffb703;
}

/* DESC (bawah sedikit) */
.promo-desc {
  top: 16px;
  font-size: 11px;
  color: #eaeaea;
}



/* ================== ROTATION ================== */
@keyframes rotateText {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* muncul saat hover tooltip */
#promo-floating-btn:hover .promo-tooltip {
  opacity: 1;
  transform: translateX(0);
  animation: tooltipGlow 1.5s ease-in-out infinite alternate;
}

/* ================== TOOLTIP GLOW ================== */
@keyframes tooltipGlow {
  0% {
    box-shadow:
      0 14px 30px rgba(0,0,0,0.4),
      0 0 18px rgba(255,183,3,0.6),
      0 0 36px rgba(255,183,3,0.35);
  }
  100% {
    box-shadow:
      0 14px 30px rgba(0,0,0,0.4),
      0 0 22px rgba(255,183,3,0.8),
      0 0 44px rgba(255,183,3,0.45);
  }
}

/* ================== HOVER BADGE ================== */
#promo-floating-btn:hover .promo-circle {
  transform: scale(1.12);
  animation: badgePulse 1.8s ease-in-out infinite alternate;

  box-shadow:
    0 12px 24px rgba(0,0,0,0.35),
    0 0 20px rgba(255,183,3,0.8),
    0 0 36px rgba(255,183,3,0.45);
}

@keyframes badgePulse {
  0%   { transform: scale(1.12); }
  50%  { transform: scale(1.18); }
  100% { transform: scale(1.12); }
}

/* ================== CLICK ANIMATION ================== */
.promo-circle:active {
  animation: promoPop 0.3s ease-out;
}

/* ================== FLOATING ANIMATION ================== */
@keyframes promoFloat {
  0%   { transform: translateY(0); }
  50%  { transform: translateY(-8px); }
  100% { transform: translateY(0); }
}

@keyframes promoPop {
  0%   { transform: scale(1); }
  50%  { transform: scale(1.2) translateY(-8px); }
  100% { transform: scale(1); }
}

/* ================== RESPONSIVE ================== */
@media (max-width:768px) {

  #promo-floating-btn {
    bottom: 180px;
    right: 30px;
  }

  #promo-floating-btn img {
    width: 120px;
  }

  .promo-circle {
    width: 56px;
    height: 56px;

    box-shadow:
      0 8px 15px rgba(0,0,0,0.25),
      0 0 14px rgba(255,183,3,0.4),
      0 0 28px rgba(255,183,3,0.2);
  }

  .promo-circle img {
    width: 42px;
    height: 42px;
  }

  .promo-tooltip {
    display: none;
  }

}